﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EtcpSharp
{
    /// <summary>
    /// 客户端通讯会话
    /// </summary>
    public interface IClientSocketSessionServer
    {
        /// <summary>
        /// 客户端唯一ID
        /// </summary>
        string Id { get; }

        /// <summary>
        /// 发送数据
        /// </summary>
        /// <param name="message"></param>
        void Send(string message);

        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="sb"></param>
        void Send(StringBuilder sb);

        /// <summary>
        /// 断开
        /// </summary>
        void Colse();
    }
}